{include file="general/header.tpl"}
<div id="path">
	You are here: <a href="/index.php">Home</a> &raquo; <a href="index.php">Administration</a> &raquo; <a href="{$url_set_stat_parent_page}">{if $url_set_stat_parent_page == 'url_set_stat.php'}My URL Set Stats{else}All URL Set Stats{/if}</a> &raquo; <a href="url_set_stat_view.php?id={$url_set->getID()}">View URL set stat</a>
</div>
<div id="main">
	{capture name="tiny_url_set"}{get_scheme()}://{if $domain}{$domain->getDomain()}{else}{#RewriteHost#}{/if}/?{$url_set->getGroupName()}{/capture}
	<h1>View URL set stat</h1>
	<div class="form-field">
		<label>Group name:</label>
		<b>{$url_set->getGroupName()}</b>
	</div>
	<div class="form-field">
		<label>Tiny URL set:</label>
		<b><a href="{$smarty.capture.tiny_url_set}" rel="external" class="no-underline">{$smarty.capture.tiny_url_set}</a></b><br /><br />
	</div>
	<div class="form-field">
		<label>Number of hits:</label>
		<b>{$url_set_stat->getHits()}</b>
	</div>
	<div class="form-field">
		<label>Last visitor's IP:</label>
		<b>{if $url_set_stat->getIP()}{$url_set_stat->getIP()}{else}Not visited yet{/if}</b>
	</div>
	<div class="form-field">
		<label>Last access:</label>
		<b>{if $url_set_stat->getLastAccess()}{$url_set_stat->getLastAccess()}{else}Not visited yet{/if}</b>
	</div>
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}